<h1>Editing accommodation</h1>

<% form_for(@accommodation) do |f| %>
  <%= f.error_messages %>

  <p>
    <%= f.label :guest_cpf %><br />
    <%= f.text_field :guest_cpf %>
  </p>
  <p>
    <%= f.label :room_num %><br />
    <%= f.text_field :room_num %>
  </p>
  <p>
    <%= f.label :num_persons %><br />
    <%= f.text_field :num_persons %>
  </p>
  <p>
    <%= f.label :emp_cpf %><br />
    <%= f.text_field :emp_cpf %>
  </p>
  <p>
    <%= f.label :request_id %><br />
    <%= f.text_field :request_id %>
  </p>
  <p>
    <%= f.label :arrive_date %><br />
    <%= f.date_select :arrive_date %>
  </p>
  <p>
    <%= f.label :exit_date %><br />
    <%= f.date_select :exit_date %>
  </p>
  <p>
    <%= f.submit 'Update' %>
  </p>
<% end %>

<%= link_to 'Show', @accommodation %> |
<%= link_to 'Back', accommodations_path %>